<?php

namespace Application\Form;
use Zend\Form\Form;

class ProjetForm extends Form{
	public function __construct(){
		
		parent::__construct("file_input");
		$this->setAttribute('method','post');
		
		
		$this->add(array(
			'name' => 'nom_projet',
			'attributes' => array(
					'type'  => 'text',
			),
			'options' => array(
					'label' =>_('Nom du projet'),
			),
		));
		
		$this->add(array(
			'name' => 'description',
			'attributes' => array(
					'type'  => 'textarea',
			),
			'options' => array(
					'label' =>_('Description du projet'),
			),
		));
		$this->add(array(
			'name' =>'fichier',
			'attributes' =>array(
					'type' =>'File',
			),
			'options' =>array(
				'label'=>_('Charger vos fichiers')
			)
		));
		
		$this->add(array(
				'name' => 'submit',
				'attributes' => array(
						'type'  => 'submit',
						'width' => '30px',
						'value' => 'Charger',
						'id' => 'submitbutton',
				),
		));
	}
}

?>